package ebcs.database.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import ebcs.database.bean.BsUserInfor;
import ebcs.database.bean.SysFunction;
import ebcs.database.bean.SysHoliday;
import ebcs.database.bean.SysUserFunc;
import ebcs.database.mybatis.dao.SystemFuncMapper;
import ebcs.database.service.SystemServiceImp;
@Service
public class SystemServiceImpl implements SystemServiceImp {

	@Autowired
	private SystemFuncMapper sysFuncDao;

	@Override
	public List<SysFunction> selectFunction(BsUserInfor user) {
		return this.sysFuncDao.selectFunction(user);
	}

	@Override
	public List<SysUserFunc> selectUserFunction(BsUserInfor user) {
		return this.sysFuncDao.selectUserFunction(user);

	}

	@Override
	public List<SysHoliday> selectHoliday() {
		SysHoliday holiDay = new SysHoliday();
		return this.sysFuncDao.selectHoliday(holiDay);
	}

}
